package com.saianfu.flowable.demo.listener

import org.flowable.engine.delegate.DelegateExecution
import org.flowable.engine.delegate.ExecutionListener

/**
 * com.saianfu.flowable.demo.listener.ApproveExecutionListener
 */
class ApproveExecutionListener : ExecutionListener {
    override fun notify(execution: DelegateExecution) {
        println(execution.eventName)
        println(execution.currentActivityId)
        println(execution.currentFlowElement.name)

        execution.setVariable("ApproveExecutionListener", execution.eventName)
    }
}